package com.summer.springboot_order_rabbitmq_consumer.service.direct;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

@Service
@RabbitListener(queues = {"duanxin.direct.queue"})
public class DuanxinDirectConsumer {
    @RabbitHandler
    public void receiveMessage(String message){
        System.out.println("duanxin direct---接收到了订单信息是: ->"+message);
    }
}
